dd858b8ac6c31abbd0c1a8b4caa1f0b7570c9c61,plugins/org.eclipse.xtext.xtend2/src/org/eclipse/xtext/xtend2/scoping/StaticallyImportedFeaturesProvider.java,StaticallyImportedFeaturesProvider,collectFeatures,#String#Iterable#Collection#,105
Before Change
if (staticType != null) {
JvmType rawType = getTypeReferences().getRawType(staticType);
if (rawType instanceof JvmDeclaredType) {
Iterable<JvmFeature> features = ((JvmDeclaredType) rawType).findAllFeaturesByName(name);
for(JvmFeature feature: features) {
if (feature instanceof JvmOperation) {
// optimization is here
After Change
if (staticType != null) {
JvmType rawType = getTypeReferences().getRawType(staticType);
if (rawType instanceof JvmDeclaredType) {
Iterable<JvmFeature> features = name != null ? ((JvmDeclaredType) rawType).findAllFeaturesByName(name) : ((JvmDeclaredType) rawType).getAllFeatures();
for(JvmFeature feature: features) {
if (feature instanceof JvmOperation) {
// optimization is here